package com.visitor.demo2;

//MyGraphic.java 图形基类
public abstract class MyGraphic
{
    public String name;
    public float centerPointX, centerPointY;
    /** 倾斜角度 */
    public float angle;

    public MyGraphic()
    {
        name = "";
        centerPointX = 0;
        centerPointY = 0;
        angle = 0;
    }

    public MyGraphic(String name, float centerPointX, float centerPointY, float angle)
    {
        this.name = name;
        this.centerPointX = centerPointX;
        this.centerPointY = centerPointY;
        this.angle = angle;
    }

    public abstract void accept(GraphicVisitor v);
}